﻿module Sustainalytics.Screening {

    export interface ISelectedCriteria {
        id: string;
        name: string;
        type: number;

        typeTwoScore: number;
        typeTwoBaseEventIndicatorId: string;

        typeOneMinValue: number;
        typeOneMaxValue: number;

        typeThreeCollectionName: string;
        typeThreeSelectedItems: Array<string>;

        typeFiveScore: number;
        typeFiveTemplateIndicatorNumber: string;
        typeFiveScoreAnswers: Array<any>;
        typeFiveAnswersText: string;

        typeSixMinValue: number;
        typeSixMaxValue: number;

        typeSevenCollectionName: string;
        typeSevenSelectedItems: Array<string>;
        typeSevenText: string;

        loading: boolean;
        isUpdating: boolean;
        companyCount: number;

        typeEightScore: number;
        typeEightTemplateIndicatorNumber: string;

        typeFourCategories: ICriteriaTypeFourCategories[];
        typeFourSymbol: string;
        typeFourScreenOnAnyInvolvement: boolean;
        typeFourSelectedCriteria: IPIFilterCriteria;
    }

    export interface IPIFilterCriteria {
        piFilterCriteriaId: string;
        categoryOfInvolvement: boolean;
        significantOwnership: boolean;
        involvement: boolean;
        revenueRange: boolean;
        start: number;
        stop: number;
    }
}